Skip to content

Conversation

@zharinov
Copy link
Member

@zharinov zharinov commented Jan 6, 2026

Summary

  • Add .neg_fields(), .pre_effects(), .post_effects() batch methods to MatchIR builder
  • Migrate all call sites to use batch methods instead of manual loops
  • Normalize remaining EffectIR::simple() call to use shorthand methods

Why

Reduces boilerplate when constructing MatchIR instructions. The repeated for eff in effects { m = m.post_effect(eff); } pattern appeared 10+ times across the codebase.

@zharinov zharinov enabled auto-merge (squash) January 6, 2026 04:20
@zharinov zharinov merged commit d1655b3 into master Jan 6, 2026
4 checks passed
@zharinov zharinov deleted the refactor/ir-builder-batch branch January 6, 2026 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants